/**   
 * @Title: TaskManager.java 
 * @Package com.cyber.quartz 
 * @Description: 
 * @author cssuger@163.com   
 * @date 2016年12月16日 上午9:16:53 
 * @version V1.0   
 */
package cn.com.ytst.data.integration.manager.job;

import org.quartz.Job;

/** 
 *@ClassName: TaskManager 
 *@Description:
 *@author cssuger@163.com 
 *@date 2016年12月16日 上午9:16:53  
 */
public class TaskManager implements java.io.Serializable{

	/** 
	* @Fields serialVersionUID : 
	*/ 
	private static final long serialVersionUID = 6217347896612579163L;
	
	
	public static final String GROUP_NAME = "DEFALUT";
	
	protected String jobName;
	
	protected String groupName;
	
	protected Class<? extends Job> clazz;
	
	protected String methodName;
	
	protected String cronexpress;
	
	protected String jobdesc;
	
	protected String JobStatus;
	
	protected String serviceClass;//具体执行业务的类
	
	protected String pramrms;
	
	protected Object object;
	
	
	public TaskManager(String jobName,Class<? extends Job> clazz,String jobdesc,String cronexpress){
		this.jobdesc = jobdesc;
		this.groupName = GROUP_NAME;
		this.clazz = clazz;
		this.jobName = jobName;
		this.cronexpress = cronexpress;
	}

	
	
	public Object getObject() {
		return object;
	}



	public void setObject(Object object) {
		this.object = object;
	}



	public String getJobStatus() {
		return JobStatus;
	}



	public void setJobStatus(String jobStatus) {
		JobStatus = jobStatus;
	}



	public String getCronexpress() {
		return cronexpress;
	}



	public void setCronexpress(String cronexpress) {
		this.cronexpress = cronexpress;
	}



	public String getServiceClass() {
		return serviceClass;
	}



	public void setServiceClass(String serviceClass) {
		this.serviceClass = serviceClass;
	}



	public TaskManager(){
		
		this.groupName = GROUP_NAME;
		
	}
	
	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Class<? extends Job> getClazz() {
		return clazz;
	}

	public void setClazz(Class<? extends Job> clazz) {
		this.clazz = clazz;
	}

	public String getJobdesc() {
		return jobdesc;
	}

	public void setJobdesc(String jobdesc) {
		this.jobdesc = jobdesc;
	}
	
	

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	
	

	public String getPramrms() {
		return pramrms;
	}



	public void setPramrms(String pramrms) {
		this.pramrms = pramrms;
	}



	@Override
	public String toString() {
		return "TaskManager [jobName=" + jobName + ", groupName=" + groupName
				+ ", clazz=" + clazz + ", methodName=" + methodName
				+ ", jobdesc=" + jobdesc + "]";
	}
	
	

}
